package cate.common.table.dynins;

import cate.common.table.ESheet;
import easy.java.dev.note.NoteClass;

@NoteClass( "星级映射")
public class DynHeroStarSheet extends ESheet<DynHeroStarRow> {

    @Override
    public String getSheetName() {
        return "星级映射";
    }

    @Override
    protected DynHeroStarRow buildRow() {
        return new DynHeroStarRow();
    }

    public int getOffSet(int level){
        for (DynHeroStarRow row : this.getList()) {
            if(level>=row.start&&level<=row.end){
                return row.offset;
            }
        }
        return 1;
    }

}
